#!/bin/bash

func() {
    false
    true
}

add() {
    sum=$(($1 + $2))
    echo $sum
}

total=$(add $1 $2)
echo total: $total
